<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'habilitacion-contable-form',
	'enableAjaxValidation'=>false,
)); ?>
	
	<p class="note"><?php echo t('Los Campos con','nucleo_etiqueta') . ' <span class="required">*</span> ' . t('son requeridos','nucleo_etiqueta');?> </p>

	<?php 
		echo $form->errorSummary($model);
		$persona= isset($model->persona)?$model->persona:new Persona();
	?>
	<fieldset>
		<fieldset>
			<legend><?php echo t('Buscar Persona','persona_etiqueta')?></legend>
			<?php 
				//echo Yii::app()->getLayoutPath();exit;
				$this->renderPartial('application.modules.persona.views.persona._persona_buscar');
			
			?>
		</fieldset>
		<fieldset>
			<legend><?php echo t('Datos Personales','persona_etiqueta')?></legend>
		<?php 
			$this->renderPartial(
									'application.modules.persona.views.persona._persona_personal_readonly',
									array(
											'form'=>$form,
											'persona'=>$persona,
										)
								);
		?>
		</fieldset>
		
		<fieldset>
			<legend><?php echo t('Habilitaciones Contables','contable_etiqueta')?></legend>
		
			<div class="width_tiny">
			<?php 
				echo $form->labelEx($model,'habilitacioncontable_matricula');
				echo $form->dropDownList(
									$model,
									'habilitacioncontable_matricula',
									array(0 => 'No', 1 => 'Si')
									
									
									
				);
				echo $form->error($model,'habilitacioncontable_matricula');
			?>
			</div>
			
			<div class="width_tiny">
			<?php 
				echo $form->labelEx($model,'habilitacioncontable_examen');
				echo $form->dropDownList(
									$model,
									'habilitacioncontable_examen',
									array(0 => 'No', 1 => 'Si')
									
									
				);
				echo $form->error($model,'habilitacioncontable_examen');
			?>
			</div>
			<div class="width_tiny">
			<?php 
				echo $form->labelEx($model,'habilitacioncontable_cursillo');
				echo $form->dropDownList(
									$model,
									'habilitacioncontable_cursillo',
									array(0 => 'No', 1 => 'Si')
									
									
				);
				echo $form->error($model,'habilitacioncontable_cursillo');
			?>
			</div>
			<div class="width_tiny">
			<?php 
				echo $form->labelEx($model,'habilitacioncontable_inscripcion');
				echo $form->dropDownList(
									$model,
									'habilitacioncontable_inscripcion',
									array(0 => 'No', 1 => 'Si')
									
									
				);
				echo $form->error($model,'habilitacioncontable_inscripcion');
			?>
			</div>
		</fieldset>
		<fieldset>
			<div class="row buttons">
				<?php echo CHtml::submitButton(t($model->isNewRecord ? 'Crear' : 'Guardar','nucleo_etiqueta'),array('class'=>'submit')); ?>
			</div>
		</fieldset>
	</fieldset>
<?php $this->endWidget(); ?>

</div><!-- form -->